package com.qf.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/*
 *@Description:
 *@author:刘哥
 *@Date:20:39 2022/7/13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
//    包含NULL值
//    @JSONField(serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String username;

    private String password;
//    忽略属性不显示
//    @JSONField(serialize = false)
    private String nikename;
//    日期格式化
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;

}
